package com.spring.housing.controller.page;

import com.spring.housing.acceptType.PageParams;
import com.spring.housing.returnType.CommenResult;
import com.spring.housing.service.Login.LoginServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PageController {
    @Autowired
    LoginServer loginServer;
    @PostMapping("/home/newsInfo")
    public CommenResult newsInfo (@RequestBody PageParams params){
        return loginServer.newsInfo(params);
    }

    @PostMapping("/ofckb/query")
    public CommenResult ofcb (@RequestBody PageParams params)  {
        return loginServer.ofckb( params);
    }
}
